package kku.cs.fgl.actor;

import java.io.IOException;

import kku.cs.fgl.Actor;

import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;

public class BackgroundActor extends ImageActor {
    
	public BackgroundActor(String imageFile) {
		super(imageFile);
	}
	public BackgroundActor(Image img) {
		super(img);
	}
	public int getZorder() {
		return super.getZorder() - 10;
	}
	@Override
	public void paint(Graphics g) {
		Image img = getImg();
		if(img==null){
		  getParent().getViewPort();
		}
	}
	@Override
	public void update(int time) {
		super.update(time);
		int w=getWidth();
	}
}
